export function objectToFormData(obj:any) {
  if (obj instanceof FormData) {
    return obj
  }
  const data = new FormData()
  for (const key in obj) {
    data.set(key, obj[key])
  }
  return data
}